﻿<Page x:Class="WpfShape.RectangleSample"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	Title="RectangleSample">

    <Canvas Width="120" Height="200" >

        <!-- Draws a 100 by 50 rectangle with a solid blue fill. -->
        <Rectangle
    Width="100"
    Height="50"
    Fill="RosyBrown"
    Canvas.Left="10"
    Canvas.Top="25" />

        <!-- Draws a 100 by 50 rectangle with a solid blue fill,
       a black outline, and rounded corners. -->
        <Rectangle
    Width="100"
    Height="50"
    Fill="Gainsboro"
    Stroke="YellowGreen" StrokeThickness="4"
    RadiusX="20" RadiusY="20"
    Canvas.Left="10"
    Canvas.Top="100"/>

    </Canvas>



</Page>
